let a=20,b=10,c=40;
console.log(a,b,c);
if(a<b){
    [a,b]=[b,a]
}
if(a<c){
    [a,c]=[c,a]
}
if(b<c){
    [b,c]=[c,b]
}
console.log(a,b,c);